package com.rpp.test.controller;

import com.rpp.framework.annotation.MyAutowired;
import com.rpp.framework.annotation.MyController;
import com.rpp.framework.annotation.MyRequestMapping;
import com.rpp.framework.annotation.Security;
import com.rpp.test.service.TestService;

/**
 * @Description
 * @Author peng
 * @Date 2020/7/9 21:46 上午
 */
@MyController
@MyRequestMapping("/demo")
public class DemoController {

    @MyAutowired
    TestService testService;

    @MyRequestMapping("/handel1")
    @Security(value = {"xiaohua"})
    public String handel1(String username) {
        return testService.get(username);
    }

    @MyRequestMapping("/handel2")
    public String handel2(String username) {
        return testService.get(username);
    }

    @MyRequestMapping("/handel3")
    public String handel3(String username) {
        return testService.get(username);
    }
}
